import request from '../../utils/request';
let baseRequest_url = "http://127.0.0.1:4890/portal";
//  --------------------------------------------------------------------------------------------------------------- //
// 会员优惠券列表分页查询
export const findMemberCouponListPage = query => {
    return request({
        url: baseRequest_url+'/admin/memberCoupon/findMemberCouponListPage',
        method: 'get',
		params: query,
    });
};
// 会员优惠券列表查询
export const findMemberCouponList = query => {
    return request({
        url: baseRequest_url+'/admin/memberCoupon/findMemberCouponList',
        method: 'get',
		params: query,
    });
};
// 会员优惠券明细查询
export const findMemberCouponInfoById = query => {
    return request({
        url: baseRequest_url+'/admin/memberCoupon/findMemberCouponInfoById/'+query,
        method: 'get',
    });
};
// 给指定用户分配优惠券
export const allocationCoupon = data => {
    return request({
        url: baseRequest_url+'/admin/memberCoupon/allocationCoupon',
        method: 'put',
		data: data,
    });
};
// 删除会员优惠券
export const deleteMemberCouponById = data => {
    return request({
        url: baseRequest_url+'/admin/memberCoupon/deleteMemberCouponById/'+data,
        method: 'delete',
    });
};
// 批量删除会员优惠券
export const deleteMemberCoupon = data => {
    return request({
        url: baseRequest_url+'/admin/memberCoupon/deleteMemberCoupon',
        method: 'delete',
		data: data,
    });
};
